﻿using Koonsoft.HYCRM.DAL;

namespace Koonsoft.HYCRM.BLL
{
    public class UtilityBLL
    {
        private UtilityDAL _dal = null;

        protected UtilityDAL DAL
        {
            get
            {
                if (_dal == null)
                {
                    _dal = new UtilityDAL();
                }

                return _dal;
            }
        }

        /// <summary>
        /// 按照日期更新流水号并获取新流水号
        /// </summary>
        /// <param name="seqName"></param>
        /// <param name="length"></param>
        /// <param name="currDate"></param>
        /// <returns></returns>
        public string GetRegularDateVal(string seqName, int length, string currDate)
        {
            return DAL.GetRegularDateVal(seqName, length, currDate);
        }
    }
}
